home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / twstdpxl / tpcnst.h < prev    next >
Text File  |  1997-12-25  |  7KB  |  230 lines

  1. // errors
  2. #define    TPNoMem                                1
  3. #define    TPCantLockMem                        2
  4. #define    TPCantOpenFile                        3
  5. #define    TPAreaOutOfBounds                    4
  6. #define    TPFlagNotRecognized                      5
  7. #define    TPInvalidArg                        6
  8. #define    TPCantCreateBitmap                    7
  9. #define    TPCantCreatePal                        8
  10. #define    TPUnrecognizedFile                    9
  11. #define    TPFormatNotSupported                10
  12. #define    TPCantTransferBits                    11
  13. #define    TPCantCreateDib                        12
  14. #define    TPUserCanceled                        13
  15. #define    TPDLLBusy                            14
  16. #define    TPNot24Dib                            15        
  17. #define    TPImageTooSmall                        16
  18. #define    TPDIBAlready24Bit                    17
  19. #define    TPDIBAlready256                        18
  20. #define    TPDIBAlready1Bit                    19
  21. #define    TPGeneralError                        20
  22. #define    TPDIBNotRgb                            21
  23. #define    TPDIBAlready16                        22
  24. #define    TPNotMyFile                            23
  25. #define    TPBadWrite                            24
  26. #define    TPUnexpectedTrailer                     25
  27. #define    TPUnknownConstruct                    26
  28. #define    TPUnknownExtension                    27
  29. #define    TPBadReadAppExt                        28
  30. #define    TPBadReadTextExt                    29
  31. #define    TPBadReadCommentExt                      30
  32. #define    TPBadReadHdt                        31
  33. #define    TPBadReadScrDesc                    32        
  34. #define    TPBadReadTypeOfExt                    33
  35. #define    TPBadReadControlExt                  34
  36. #define    TPBadReadImgDesc                    35
  37. #define    TPBadRead                            36
  38. #define    TPCantGetDC                            37
  39. #define TPCantSaveUndo                        38
  40. #define    TPCantCreateFont                    39
  41. #define    TPCantGetMetaBits                       40
  42. #define    TPCantRegisterPrivateFormat            41
  43. #define    TPCantCreateMetafile                42
  44. #define    TPClipboardBusy                        43
  45. #define TPUndoStackEmpty                    44
  46. #define    TPImageMergeFailed                       45
  47. #define    TPTooManyOpenFiles                       46
  48. #define    TPCantApplyGamma                       47
  49. #define TPFileExportFailed                    48
  50. #define TPFileImportFailed                    49
  51. #define    TPFailure                            50
  52. #define TPFailedUndo                        51
  53. #define TPNoValidImageLoaded                52
  54. #define TPFileFormatNotSupported            53
  55. #define TPCorruptFile                        54
  56. #define TPCantOpenTmpFile                    55
  57. #define TPErrParsingJPEGFile                56
  58. #define TPErrWritingTempFile                57
  59. #define TPErrWritingJPEGFile                58
  60. #define TPCantUndo                            59
  61. #define TPCantOpenClipboard                    60
  62. #define TPCantEmptyClipboard                61
  63. #define TPClipboardPasteFormatNotSupported    62
  64. #define TPGetFromClipboardFailed            63
  65. #define TPPasteFailed                        64
  66. #define TPNotIconFile                        65
  67. #define TPInvalidOpcode                        66
  68. #define TPImageNotExternal                    67
  69. #define TPPictureCantGetType                68
  70. #define TPPictureTypeNotSupported            69
  71. #define TPPictureCantGetBitmap                70
  72. #define TPPictureCantGetPalette                71
  73. #define TPTiffError                            72
  74. #define TPInvalidMissingTiffLib                73
  75. #define TPInvalidMissingFifLib                74
  76. #define TPNoFalseColorFor24Bit                75
  77. #define TPInvalidMissingPbmLib                76
  78. #define TPCantGetTempPath                    77
  79. #define TPCantMakeTempFileName                78
  80. #define TPFailedFileMapping                    79
  81. #define TPInvalidNumPalEntries                80
  82. #define TPInvalidMissingPngLib                81
  83. #define TPNoPluginsFound                    83
  84. #define TPPluginBusy                        84
  85. #define TPInvalidColorDepth                    85
  86. #define TPFilterLargerThanImage                86
  87. #define TPFailedPluginLoad                    87 
  88. #define TPFailedPluginResolveAddress        88
  89. #define TPErrPluginParameters                89    
  90. #define TPErrPluginPrepare                    90
  91. #define TPPluginImageModeNotSupported        91
  92. #define TPPluginProcessingFailed            92
  93. #define TPInvalidPluginPath                    93
  94. #define TPInvalidImageSize                    94
  95. #define TPPngInterlacedLessThan5            95
  96. #define TPNoSelectionWhenFitToSize            96
  97. #define TPNoSelection                        97
  98. #define TPCorruptUndoFile                    98
  99.  
  100.  
  101. // filetypes
  102. #define TPFileTypeUnknown            0
  103. #define TPFileTypeClipboard            1
  104. #define TPFileTypeAldusMetafile        2
  105. #define    TPFileTypeWindowsMetafile    3
  106. #define TPFileTypeBmp                4
  107. #define TPFileTypeGif                5                   
  108. #define    TPFileTypeWindowsIcon        6
  109. #define TPFileTypeWindowsCursor        7
  110. #define TPFileTypePcx                8
  111. #define    TPFileTypeTif                9
  112. #define TPFileTypePng                10
  113. #define TPFileTypeJpg                11
  114. #define    TPFileTypePbm                12
  115. #define    TPFileTypePgm                13
  116. #define    TPFileTypePpm                14
  117. #define    TPFileTypeFractalFif        15
  118.  
  119. // mirror directions
  120. #define TPMirrorDirLeftToRight        1
  121. #define TPMirrorDirRightToLeft        2
  122. #define TPMirrorDirTopToBottom        3
  123. #define TPMirrorDirBottomToTop        4
  124.  
  125. // dither methods
  126. #define TPDitherFS                    1
  127. #define TPDitherSA                    2
  128.  
  129. // color channels
  130. #define TPColorChannelRed            2
  131. #define TPColorChannelGreen            1
  132. #define TPColorChannelBlue            0
  133. #define TPColorChannelAll            3
  134.  
  135. // gradient and emboss directions
  136. #define TPNorth                        1
  137. #define TPNorthEast                    2
  138. #define TPEast                        3
  139. #define TPSouthEast                    4    
  140. #define TPSouth                        5
  141. #define TPSouthWest                    6
  142. #define TPWest                        7
  143. #define TPNorthWest                    8
  144.  
  145. // shift and difference directions
  146. #define TPVertical                   1
  147. #define TPHorizontal                2
  148. #define TPHorizontalAndVertical        3
  149.  
  150. // palette creation styles
  151. #define TPPopPal            0x0001        // popularity method
  152. #define TPMedianCutPal        0x0002        // median cut method
  153. #define TPUni884Pal            0x0004        // uniform distribution 8 8 4
  154. #define TPUni666Pal            0x0008        // uniform distribution 6 6 6
  155. #define TPUni256GrayPal        0x0010        // 256 shades of gray
  156. #define TPBWPal                0x0020        // black & white
  157. #define TP16Pal                0x0040        // 16 colors
  158. #define TPHalftonePal        0x0080        // uniform halftone palette 
  159.  
  160. // gray scale conversion styles
  161. #define    TPGrayMaximum        0x01
  162. #define    TPGrayMean            0x02
  163. #define    TPGrayWeightedMean    0x04
  164.  
  165. // add border shadow directions
  166. #define TPShadowDirLeft        1
  167. #define TPShadowDirRight    2
  168.  
  169. // combine operations
  170. #define TPCombineSubtract    1
  171. #define TPCombineAnd        2
  172. #define TPCombineOr            3
  173. #define TPCombineXor        4
  174. #define TPCombineAdd        5
  175. #define TPCombineMult        6
  176. #define TPCombineDiv        7
  177. #define TPCombineMin        8
  178. #define TPCombineMax        9
  179. #define TPCombineAve        10
  180. #define TPCombineOverlay    11
  181.  
  182. // JPEG load scale
  183. #define TPJPEGLoadAsIs        1
  184. #define TPJPEGLoadHalf        2
  185. #define TPJPEGLoadQuarter    3
  186. #define TPJPEGLoadEighth    4
  187.  
  188. // Tools
  189. #define TPToolSelectRect                1
  190. #define TPToolSimplePixel                2
  191. #define TPToolSimpleRect                3
  192. #define TPToolSimpleLine                4
  193. #define TPToolSimpleEllipse                5
  194. #define TPToolSimpleBCurve                6
  195. #define TPToolRndJitterBrush            7
  196. #define TPToolSparseDashJitterBrush        8
  197. #define TPToolFDiagonalJitterBrush        9
  198. #define TPToolBDiagonalJitterBrush        10
  199. #define TPToolCrowFeetJitterBrush        11
  200. #define TPToolDenseDashJitterBrush         12
  201. #define TPToolPixelJitterBrush             13
  202. #define TPToolSoapOnARopeBrush            14
  203.  
  204. // Pen Styles
  205. #define TPPenStyleSolid            0
  206. #define TPPenStyleDash            1       /* -------  */
  207. #define TPPenStyleDot            2       /* .......  */
  208. #define TPPenStyleDashDot        3       /* _._._._  */
  209. #define TPPenStyleDashDotDot    4       /* _.._.._  */
  210. #define TPPenStyleNull            5
  211.  
  212. /* Fill Brush Styles */
  213. #define TPFillBSSolid        0
  214. #define TPFillBSNull        1
  215. #define TPFillBSHorizontal  2       /* ----- */
  216. #define TPFillBSVertical    3       /* ||||| */
  217. #define TPFillBSFDiagonal    4       /* \\\\\ */
  218. #define TPFillBSBDiagonal    5       /* ///// */
  219. #define TPFillBSCross        6       /* +++++ */
  220. #define TPFillBSDiagCross    7       /* xxxxx */
  221.  
  222. /* background mode */
  223. #define TPBkTransparent        1
  224. #define TPBkOpaque            2
  225.  
  226. // Brush Slant
  227. // affects TPToolSoapOnARopeBrush only (at the moment)
  228. #define TPBrushSlantNone    1
  229. #define TPBrushSlantLeft    2
  230. #define TPBrushSlantRight    3